{% extends "base.html" %}
{% load szachy_tags %}

{% block content %}
 
<div class="span-17 loud last">
  <div class="span-4">
    <h4>Player</h4>
  </div>
  <div class="span-3">
    <h4>Ranking</h4>
  </div>
</div>

{% for player in page.object_list %}
<div class="span-17 last">
  <a href="{{ player.profile }}" target="_parent">
  <div class="span-2">
    <img src="{{ player.photo }}" alt="{{ player.name }}"/>
  </div>
  <div class="span-2">
    {{ player.name }}
  </div>
  </a>
  <div class="span-2">
    {{ player.ranking }}
  </div>
  <div class="span-3">
  {% ifnotequal me player %}
        <a href="{% url invite_to_game player_id=player.id %}">Invite for a match!</a>
  {% endifnotequal %}
  </div>
  <div class="last"></div>  
</div>
  {% endfor %}


{% endblock %}
